 <!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系统首页</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/static/manager/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/static/manager/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/static/manager/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/static/manager/css/animate.min.css" rel="stylesheet">
    <link href="/static/manager/css/style.min.css?v=4.0.0" rel="stylesheet"><base target="_blank">
	<script src="/static/manager/js/plugins/echarts/echarts-all.js"></script>

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>剩余固定值数</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">{$const_sub_number}</h1>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>购买固定值数</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">{$const_buy_number}</h1>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>用户购买总数</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">{$const_buy_number}</h1>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>奖励池总额</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">￥{$reward}</h1>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>系统数据</h5>
                    </div>
                    <div class="ibox-content">

                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th>数据分类</th>
                                    <th>用户人数</th>
                                    <th>购买固定值</th>
                                    <th>奖励总额</th>
                                    <th>提现金额</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>今日新增</td>
                                    <td>{$day_user}人</td>
                                    <td>{$day_had}</td>
                                    <td>￥{$day_detail}</td>
                                    <td>￥{$day_tixian}</td>
                                </tr>
                                <tr>
                                    <td>昨日新增</td>
                                    <td>{$yday_user}人</td>
                                    <td>{$yday_had}</td>
                                    <td>￥{$yday_detail}</td>
                                    <td>￥{$yday_tixian}</td>
                                </tr>
                                <tr>
                                    <td>全部</td>
                                    <td>{$sumday_user}人</td>
                                    <td>{$sumday_had}</td>
                                    <td>￥{$sumday_detail}</td>
                                    <td>￥{$sumday_tixian}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>	

	<div class="col-sm-12">
	<div id="main" style="width: 100%;height:400px;"></div>
    <script type="text/javascript">
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('main'));

        // 指定图表的配置项和数据
        var option = {      
            tooltip: {
			formatter: '{b}: {c}元',
			},
            xAxis: {
                data: ["","业绩","奖励","利润",""]
            },
            yAxis: {},
            series: [{
                type: 'bar',
                data: [0,{$summoney}, {$bonus}, {$summoney-$bonus},0]
            }]
        };

        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
    </script>
	</div>
	
    <script src="/static/manager/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/manager/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/static/manager/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="/static/manager/js/content.min.js?v=1.0.0"></script>
    <script src="/static/manager/js/plugins/iCheck/icheck.min.js"></script>
    <script src="/static/manager/js/plugins/layer/layer.min.js"></script>
    <script>
        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",});
        $(".btn-success").click(function () {
            alert('缓存更新成功！');;
        });
        });
    </script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>

</html>